package day20170923.lab01.test10;

/**
 * Created by Administrator on 2017/10/4.
 */
public class Test10 {
    public static void main(String[] args) {
        int j, n = 0;
        System.out.print(1+" "+3+" "+5+" "+7+" "+11);
        System.out.println();
        for (j = 12; j <= 100; j++){
            if (j % 2 != 0 & j % 3 != 0 & j % 5 != 0 & j % 7 != 0) {
                System.out.print(j+" ");
                n++;
            }
            if (n % 5 == 0) {
                System.out.println();
            }
        }

    }
}
